<template>
  <a-descriptions title="糖尿病概况" bordered :column="{ xxl: 2, xl: 2, lg: 2, md: 2, sm: 2, xs: 1 }">
    <a-descriptions-item label="糖尿病诊断" :span="report.ifDiabetesText == '已确诊' ? 1 : 2">
      {{ report.ifDiabetesText }}
    </a-descriptions-item>
    <template v-if="report.ifDiabetesText == '已确诊'">
      <a-descriptions-item label="确诊日期" :span="1">
        {{ report.diabetesDiagnoseDate }}
      </a-descriptions-item>
      <a-descriptions-item label="糖尿病类型" :span="2">
        {{ report.diabetesTypeText }}
      </a-descriptions-item>
      <a-descriptions-item label="起病类型" :span="2">
        {{ report.diabetesOnsetSymptom }}
      </a-descriptions-item>
      <a-descriptions-item label="用药类型" :span="2">
        {{ report.drugType }}
      </a-descriptions-item>
      <a-descriptions-item label="空腹血糖" :span="1">
        {{ report.sugarBreakfastBefore }}
      </a-descriptions-item>
      <a-descriptions-item label="早餐后血糖" :span="1">
        {{ report.sugarBreakfastAfter }}
      </a-descriptions-item>
      <a-descriptions-item label="午餐前血糖" :span="1">
        {{ report.sugarLunchBefore }}
      </a-descriptions-item>
      <a-descriptions-item label="午餐后血糖" :span="1">
        {{ report.sugarLunchAfter }}
      </a-descriptions-item>
      <a-descriptions-item label="晚餐前血糖" :span="1">
        {{ report.sugarSupperBefore }}
      </a-descriptions-item>
      <a-descriptions-item label="晚餐后血糖" :span="1">
        {{ report.sugarSupperAfter }}
      </a-descriptions-item>
      <a-descriptions-item label="睡前血糖" :span="1">
        {{ report.sugarSleepBefore }}
      </a-descriptions-item>
      <a-descriptions-item label="凌晨血糖" :span="1">
        {{ report.sugarSleepAfter }}
      </a-descriptions-item>
      <a-descriptions-item label="糖化血红蛋白" :span="1">
        {{ report.hba1c }}
      </a-descriptions-item>
      <a-descriptions-item label="日血糖波动幅度" :span="1">
        {{ report.sugarWave }}
      </a-descriptions-item>

      <a-descriptions-item label="糖尿病家族史" :span="1">
        早发性心血管疾病家族史：{{ report.familyHistoryPrematureAngioText }}
        <a-divider />
        2型糖尿病家族史：{{ report.familyHistoryDiabetes2Text }}
      </a-descriptions-item>
    </template>
  </a-descriptions>
</template>

<script>
export default {
  name: 'Overview',
  props: ['report'],
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="less" scoped></style>

